<div id="jobListDataGridToolbar">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">添加</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">编辑</a>
</div>
<table class="easyui-datagrid" title="任务管理" id="jobListDataGrid"
       data-options="singleSelect:true,collapsible:true,url:'job/json',method:'get',pagination:true,rownumbers:true">
    <thead>
    <tr>
        <th data-options="field:'itemid',width:80,align:'center'">JobKey</th>
        <th data-options="field:'productid',width:100,align:'center'">任务名称</th>
        <th data-options="field:'listprice',width:80,align:'center'">运行模式</th>
        <th data-options="field:'unitcost',width:250,align:'center'">Cron</th>
        <th data-options="field:'attr1',width:80,align:'center'">创建人</th>
        <th data-options="field:'status',width:60,align:'center'">状态</th>
        <th data-options="field:'111',width:230,align:'center'">任务描述</th>
    </tr>
    </thead>
</table>
<script>
    $('#jobListDataGrid').datagrid({
        toolbar: '#jobListDataGridToolbar'
    });
</script>